package com.ruoyi.app.controller;

import com.ruoyi.business.domain.JtAppUser;
import com.ruoyi.business.domain.JtBanner;
import com.ruoyi.business.service.IJtBannerService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 横幅广告
 * @Author Alan Zhang
 * @Date 2025/4/14 15:12
 */
@RestController
@RequestMapping("/api/banner")
public class BannerApiController extends BaseApiController{
    @Autowired
    private IJtBannerService jtBannerService;
    /**
     *
     * @return
     */
    @PostMapping("/list")
    @ResponseBody
    public AjaxResult applyInfo()
    {
        JtBanner param = new JtBanner();
        param.setStatus(0);
        List<JtBanner> bannerList = jtBannerService.selectJtBannerList(param);
        return AjaxResult.success("success", bannerList);
    }
}
